package com.myx.dao.news;

import com.myx.pojo.News;

import java.util.List;



public interface NewsDao {

    public List<News> getNewsListPages(Integer currentNo, Integer pageSize);
    public News getNewsById(int newsId);

    List<News> getNewsListPagesByCategoryId(Integer categoryId, Integer currentNo, Integer pageSize);

    boolean addNews(News news);

    boolean modifyNews(News news);

    boolean deleteNews(Integer newsId);

    List<News> getNewsListPagesByTitle(String title, Integer pageNo, Integer pageSize);
}
